Skip to content

Supports Laravel 12#451

Merged
taylorotwell merged 10 commits into2.xfrom
develop
Feb 19, 2025
Merged

Supports Laravel 12#451
taylorotwell merged 10 commits into2.xfrom
develop

Conversation

@crynobone
Copy link
Member

@crynobone crynobone commented Jan 23, 2025

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
@crynobone crynobone marked this pull request as ready for review February 19, 2025 23:08
@taylorotwell taylorotwell merged commit 1d85805 into 2.x Feb 19, 2025
59 checks passed
@taylorotwell taylorotwell deleted the develop branch February 19, 2025 23:49
kresnasatya added a commit to senkulabs/breeze-lite that referenced this pull request Jul 26, 2025
The breeze-lite support laravel version 12 because it follows the upstream (laravel/breeze): laravel/breeze#451
@Richard2012
Copy link

I attempted to install Laravel 12 with Breeze using the installer command
laravel new my-app --using=laravel/breeze

The installation ended with error:
In RunScriptCommand.php line 124:

Script "post-root-package-install" is not defined in this package

As a result only /vendor and Breeze directories /src and /stubs were installed.
Laravel files were not installed.
The installed README.md from Breeze says it is for Laravel 11

@Jubeki
Copy link
Contributor

Jubeki commented Dec 24, 2025

@Richard2012 Breeze is not a starter kit compatible with the Laravel 12 Installer.

You need to manually install it with the commands

laravel new my-app
cd my-app
composer require laravel/breeze
pho artisan breeze:install

@MattiaMarchiorato
Copy link

@Jubeki in this way you will receive an npm error during the install because of vite and laravel-vite-plugin.

"laravel-vite-plugin": "^1.3.0",
"vite": "^6.4.1",

you have to manually set the versions as above.

@Jubeki
Copy link
Contributor

Jubeki commented Dec 24, 2025

@MattiaMarchiorato @Richard2012 I just tried the setup above and it worked without error. If you still have Problems you can try to fix the InstallerCommand in Breeze:

https://github.com/laravel/breeze/blob/2.x/src/Console/InstallCommand.php

Otherwise create an issue on https://github.com/laravel/framework. Maybe the Laravel Team will make Laravel Breeze compatible. And exactly which commands you are running and which stacks you are choosing.

Some other questions:
Are you using the latest version of the Laravel installer?
composer global require laravel/installer (or update via Herd UI if you use Herd)

Here a look at my terminal that it worked:

Screenshot 2025-12-24 at 09 47 16 Screenshot 2025-12-24 at 09 47 26 Screenshot 2025-12-24 at 09 47 55 Screenshot 2025-12-24 at 09 48 38

@MattiaMarchiorato
Copy link

@Jubeki try with vue and inertiajs you will receive the error during the npm install command.

@Richard2012
Copy link

@MattiaMarchiorato @Jubeki
I can now report successful installation of Laravel 12 with Breeze. I did it in two separate steps as suggested by @Jubeki
I have selected the Blade with Alpine option.
I did not receive errors @MattiaMarchiorato warned about, probably because I did not run npm install.

@MattiaMarchiorato
Copy link

@Richard2012 Wich stack? Vue and inertiajs still same node issue

@Richard2012
Copy link

@Richard2012 Wich stack? Vue and inertiajs still same node issue

I will not use these as I am installing Bootstrap blade templates. No vite.

@JohnnyWalkerDigital
Copy link
Contributor

This seems to work fine in Laravel 12. Why does the documentation say it only supports 11? Breeze is super helpful for those of us who don't need Vue/Livewire/React (which is most of the internet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants